﻿<phone:PhoneApplicationPage 
    x:Class="VisualStudioAchievements.InputPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" x:Name="MobileInputBox">

    <Grid x:Name="LayoutRoot" Background="White">
        <toolkit:PerformanceProgressBar  x:Name="perfBar" IsIndeterminate="True" Visibility="{Binding Path=Instance.HidePerfBar,Source={StaticResource LocalBindingPoint},Converter={StaticResource PerfBarConverter},ConverterParameter=p}"></toolkit:PerformanceProgressBar>
        
        <StackPanel Margin="20,20,20,90">
            <Grid Margin="0,0,0,10" Width="440" Background="{StaticResource PhoneAccentBrush}">
                <Image HorizontalAlignment="Left" Source="Images/adduser.png"></Image>
            </Grid>
            
            <TextBlock Foreground="Black" Margin="15,10,15,0" TextWrapping="Wrap" Text="enter channel9 user name" FontSize="{StaticResource PhoneFontSizeMediumLarge}" FontFamily="{StaticResource PhoneFontFamilyNormal}"></TextBlock>
            <TextBox KeyDown="txtUsername_KeyDown" Style="{StaticResource CustomTextBox}" x:Name="txtUsername" BorderBrush="Black" Foreground="Black" Margin="0,10,0,0"></TextBox>
        </StackPanel>

        <!--<CheckBox x:Name="chkBinder" IsEnabled="{Binding Path=Instance.HidePerfBar,Source={StaticResource LocalBindingPoint}}" IsEnabledChanged="CheckBox_IsEnabledChanged" Visibility="Collapsed"></CheckBox>-->    
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="btnAddUser" Click="btnAddUser_Click" IconUri="/Images/appbar.check.png" Text="ok"/>
            <shell:ApplicationBarIconButton x:Name="btnCancel" Click="btnCancel_Click"  IconUri="/Images/appbar.stop.png" Text="cancel"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
